package com.ywu.common.page;

import com.ywu.common.entity.PageInfo;

/**
 * @ClassName PageService
 * @Description TODO
 * @Author GroundDemo
 * @Date 2024/2/28 23:17
 * @Version 1.0
 **/
public class PageService {
    public static void execPageStartAndEnd(PageInfo pageInfo) {
        Integer pageIndex = pageInfo.getPageIndex();
        Integer pageSize = pageInfo.getPageSize();
        Integer start = (pageIndex - 1) * pageSize;
        pageInfo.setStart(start);
    }
}
